
local strUtil = require "StrTools"


strUtil.Say()

local infos = {}
table.insert(infos,10)
table.insert(infos,1,20)
table.insert(infos,1,30)

for i, v in ipairs(infos) do
    print("i=",i,"v=",v)
end



local count = 16000

local arr = {}
for i = 1, count, 1 do
    table.insert(arr,{level=i,id=i+1})
end
local st = os.clock()
table.sort(arr,function (a,b)
    return a.level < b.level
end)

local num = 0
local curlv = 100
for i, v in ipairs(arr) do
    if v.level>=100 and v.level<=curlv+30 then
        num = num + 1
    end
end
print("colst =",os.clock()-st)

local oldMap = {}
local canDressIds = {}
local bagItemIds = {}
local num = 5
for i = 1, num, 1 do
    local id = i*10
    table.insert(canDressIds,{slotId=i,id=id})
    table.insert(bagItemIds,id)
  
end


